package edebe.flyinginstrument;

import edebe.flyinginstrument.entity.IFlyingInstrumentEntity;
import edebe.flyinginstrument.item.IFlyingInstrumentItem;
import edebe.flyinginstrument.key.ModKeys;
import edebe.flyinginstrument.loader.EntityRenderLoader;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.apache.logging.log4j.Logger;

@Mod(modid = FlyingInstrumentMod.MODID, name = FlyingInstrumentMod.NAME, version = FlyingInstrumentMod.VERSION)
public class FlyingInstrumentMod {
    public static final String MODID = "flyinginstrument";
    public static final String NAME = "Flying Instrument";
    public static final String VERSION = "1.9.2";

    public static Logger logger;

//    @Mod.Instance(FlyingInstrumentMod.MODID)
//    public static FlyingInstrumentMod instance;


    @EventHandler
    @SideOnly(Side.CLIENT)
    public void preInit(FMLPreInitializationEvent event) {
        logger = event.getModLog();
        ModKeys.init();
//        MinecraftForge.EVENT_BUS.register(this);
    }

    @EventHandler
    public void init(FMLInitializationEvent event) {
    }

    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
    }

    //实体模型监听
    @EventHandler
    @SideOnly(Side.CLIENT)
    public void preInitClient(FMLPreInitializationEvent event)
    {
        EntityRenderLoader.registerEntityRenders();
    }



}